/**
 * Created by HX on 2016/10/29.
 */
var path = require("path")

module.exports = {
    entry : {
        index : "./index.js"
    },
    output : {
        // path : "./build",
        path: path.resolve(__dirname, './build'),
        filename : "bundle.js"
    },
    module : {
        loaders : [
            {test:/\.js$/, loader:'jsx-loader'}  //使用jsx-loader转换index.js到build目录下的bundle.js
        ]
    }

}
